﻿using System;
using Microsoft.Practices.Prism.Modularity;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using BizControl.Presentation.Infrastructure.Constants;
using Microsoft.Practices.Prism.Regions;

namespace BizControl.Presentation.ActivityEditCompositeModule
{
  [ModuleExport(typeof(ActivityEditCompositeModule))]
  public class ActivityEditCompositeModule : IModule
  {
    [Import]
    private IRegionManager _regionManager;

    #region IModule Members

    public void Initialize()
    {
      _regionManager.RegisterViewWithRegion(ShellRegionNames.MainContentRegion, typeof(Views.ActivityEditCompositeView));
      _regionManager.RegisterViewWithRegion(RegionNames.ActivityEditMainRegion, typeof(BizControl.Presentation.ActivityEditModule.Views.ActivityEditView));
      _regionManager.RegisterViewWithRegion(RegionNames.ActivityEditMainRegion, typeof(BizControl.Presentation.ParticipantsModule.Views.ParticipantsView));
    }

    #endregion
  }
}
